package yf.mall.enums;

import lombok.Getter;


/**
 * @author hxf
 * @email 505860922@qq.com
 * @date Sun May 24 14:16:14 CST 2020
 */
@Getter
public enum AccountRecordBusEnum {


    TRANSFER(0, "调配"),

    CHARGE(1, "充值"),

    PAYMENT(2, "货款"),

    SHARE_REWARD(3, "分享奖励"),

    BACK(4, "追回奖励"),

    PAY(5, "支付"),

    AUTO_PAY(6, "自动支付"),

    AREA_REWARD(7, "区域奖励")
    ;


    int index;
    String value;

    AccountRecordBusEnum(int index, String value) {
        this.index = index;
        this.value = value;
    }

    public static String indexOf(int idx) {
        return AccountRecordBusEnum.values()[idx].getValue();
    }

}
